import { defineStore } from "pinia";
import { login } from "@/api/login/login.js";


export const useLoginStore = defineStore("login", {
  state: () => {
    return {
      user: {},
      token: "",
      saveNavState: "",
      menuList: [],
    };
  },
  getters: {},
  actions: {
    login(username, password, code, uuid) {
     return login(username, password, code, uuid)
    },
  },
  persist: { enabled: true }, //开启缓存
});
